-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test extended to verify audit logs. #2153
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How has the test runtime been impacted by these changes? It looks like there is heavy cpu usage, and possible overhead from pooling.
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/test/framework/audit/AuditLogsRule.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/SearchOperationTest.java
Show resolved
Hide resolved
c6d4255
to
4a48848
Compare
@lukasz-soszynski-eliatra Could you please rebase against main, the build breaks have been fixed |
38984fa
to
60f1313
Compare
code rebased into the newest main branch |
Looks like there is a CI failure, can you dig in on that? |
I checked the log output. During the build, many tests failed. The log output contains many error messages related to missing resources like
Another messages also point out that cluster configuration is not valid:
Furthermore, many messages which occur multiple times point out that security plugin configuration was not loaded into the index
My supposition is that tests were not able to create configuration files during the build. I am not sure why. I think that these failures are not related to changes introduced in the scope of this PR because older test which failed was not modified. |
@peternied Could you try to rerun the build in CI/CD environment, please? |
I've retried the CI. Network seems to be really flaky over the past 24 hours... on a related note; I've got a pull request that should deal with some of the failing audit tests, if you are interested I could use more eyes on a pull request I have out [1], I also opened an issue to make sure these tests that you have been added also have retries enabled [2] |
Codecov Report
@@ Coverage Diff @@
## main #2153 +/- ##
============================================
- Coverage 61.05% 61.02% -0.03%
+ Complexity 3270 3267 -3
============================================
Files 259 259
Lines 18335 18335
Branches 3248 3248
============================================
- Hits 11194 11189 -5
- Misses 5555 5561 +6
+ Partials 1586 1585 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
e5dd7c8
to
f6c8b4c
Compare
Signed-off-by: Lukasz Soszynski <[email protected]>
… logs. Signed-off-by: Lukasz Soszynski <[email protected]>
Signed-off-by: Lukasz Soszynski <[email protected]>
…/opensearch/security/** Signed-off-by: Lukasz Soszynski <[email protected]>
…upt active waiting. Signed-off-by: Lukasz Soszynski <[email protected]>
f7d2726
to
cdc8780
Compare
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Lukasz Soszynski <[email protected]>
b43df6a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. CI failure is due to unrelated issue
Description
[Describe what this change achieves]
Integration tests and test framework extended so that verification of audit logs can be performed in course of the tests.
Issues Resolved
[List any issues this PR will resolve]
Is this a backport? If so, please add backport PR # and/or commits #
Testing
[Please provide details of testing done: unit testing, integration testing and manual testing]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.